package modelLag;
import java.util.ArrayList;

/**
 * 
 * @author (Christian, Umut, Christoffer, Patrick, Simon) 
 * @project (Semesterprojekt)
 * @version (2015.01.13)
 */

public class Sale extends Transaction 
{
	public static int IDCounter = 0;
	private int saleID;
	private ArrayList<Product> products;

	/**
	 * Sale contrutor 
	 * @params emp the employee performing the sale
	 **/
	public Sale (Employee emp){
		super(emp);
		IDCounter+=1;
		saleID = IDCounter;
		products = new ArrayList<Product>();	
	}
	
	/**
	 * Add's a product to the sale
	 * @params p the product to be added
	 */
	public void addProduct(Product p){
		products.add(p);
		
	}
	
	public ArrayList<Product> getProducts(){
		return products;
	}
}